import request from "@/utils/request";


// 上传接口2
export function upload2(filename, guid) {
    return request({
        url: "/v1/api/unsafe/annotate/api/aiom/mergeChunk",
        method: "get",
        params: {
            filename: filename,
            guid: guid
        }
    });
}
//登录
export function passwordLogin(axios, data) {
    return axios.post(`/v1/api/unsafe/system/auth/password/login?id=${data.id}&password=${data.password}`);
}

//拿到userinfo
export function getuserInfo(token) {
    return request({
        url: "/v1/api/safe/system/auth/user/info",
        method: "post",
        token: token
    });
}
//退出loginout
export function userLoginOut(token) {
    return request({
        url: "/v1/api/unsafe/system/auth/token/destroy",
        method: "post",
        token: token
    });
}
export function setAuth(query) {
    return request({
        url: "/v1/api/unsafe/system/auth/common/register",
        method: "post",
        data: query
    })
}

// 个人中心任务明细
export function createList(query) {
    return request({
        url: "/v1/api/unsafe/annotate/api/tags/taskItems/list",
        method: "post",
        data: query
    });
}

// 折线图
export function lineCharts() {
    return request({
        url: "/v1/api/unsafe/annotate/api/kanban/statistisc/searchAiomStatistics",
        method: "get"
    })
}

// 项目清单
export function projectList(id) {
    return request({
        url: "/v1/api/unsafe/annotate/api/kanban/aiom/queryProjectListInfo",
        method: "post",
        data: {
            type: id
        }
    })
}

// 实时监控
export function gettimeMonitor() {
    return request({
        url: "/v1/api/unsafe/annotate/api/kanban/projectitem/query/projectItem",
        method: "post"
    })
}

// 人员监控
export function getPersonMonitor() {
    return request({
        url: "/v1/api/unsafe/annotate/api/kanban/aiom/searchMonitorReport",
        method: "post"
    })
}